
<!DOCTYPE html>
{% load staticfiles %}
<html xmlns="http://www.w3.org/1999/html">
 <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <title>内蒙古西贝餐饮集团有限公司</title>
   {% block CSS %}
   {% endblock %}
</head>
 <body>
<div id="wrapper">
    {% include 'menu.html' %}

    <div id="page-wrapper" class="gray-bg dashbard-1">

        <div class="row border-bottom">
            <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                <div class="navbar-header"> <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a>
                    <div  class="pagetitle">系统菜单</div>
                </div>
                <ul class="nav navbar-top-links navbar-right">
                    <li> <span class="m-r-sm text-muted welcome-message">欢迎来到西贝莜面村系统对接平台</span> </li>
                    <li class="dropdown"><a class="dropdown-toggle count-info"   href="#">  <!--<i class="fa fa-bell"></i> <span class="label label-primary">8</span>--> </a> </li>
                    <li> <a onclick="logout()"> <i class="fa fa-sign-out"></i> 退出 </a> </li>
                </ul>
            </nav>
        </div>
        {% block contxt %}
        {% endblock %}
       {% include 'footer.html' %}
    </div>
</div>
<!-- 警告框 -->
    {% block Message %}
    {% endblock %}
     <!-- Mainly scripts -->
    {% block script %}
    {% endblock %}
</body>
<script type="text/javascript">
    //登出
    function logout(){
        Modal.confirm(
                {
                    msg: "是否继续退出？"
                }).on( function (e) {
                    if(e==true){
                        $.ajax( {
                            type : "post",
                            url : "/logout/",
                            data : {},
                            dataType:"json",
                            success : function(data) {
                                if(data.code==1){
                                    location.href='/';
                                }else{

                                }
                            },
                            error : function(data) {

                            }
                        });
                    }

                });

    }
</script>
</html>